<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>Demo</title>
    <meta name="description" content=""/>
    <meta name="viewport" content="width=device-width"/>
    <base href="/"/>
    <!--<link rel="stylesheet" type="text/css" href="/webjars/bootstrap/css/bootstrap.min.css"/>-->
    <!--<script type="text/javascript" src="/webjars/jquery/jquery.min.js"></script>-->
    <!--<script type="text/javascript" src="/webjars/bootstrap/js/bootstrap.min.js"></script>-->
    <!--<link href="/webjars/bootstrap/css/bootstrap.min.css" rel="stylesheet">-->

</head>
<body ng-app="app" ng-controller="home as home">

<div class="container">
    Login with: <a href="/login/github">Github</a>
</div>

<div class="container">
    <form action="/login/self" method="post">
        <input type="text" name="username" placeholder="帐号">
        <input type="password" name="password" placeholder="密码">
        <input type="submit" >
    </form>
</div>
<!--<div class="container" ng-show="home.authenticated">-->
    <!--Logged in as: <span ng-bind="home.user"></span>-->
<!--</div>-->


<!--<script type="text/javascript" src="/webjars/angularjs/angular.min.js"></script>-->
<!--<script type="text/javascript">-->
    <!--angular.module("app", []).controller("home", function($http) {-->
        <!--var self = this;-->
        <!--$http.get("/user").success(function(data) {-->
            <!--self.user = data.name;-->
            <!--console.log(data);-->
            <!--self.authenticated = true;-->
        <!--}).error(function() {-->
            <!--console.log("未登录")-->
            <!--self.user = "N/A";-->
            <!--self.authenticated = false;-->
        <!--});-->
    <!--});-->
<!--</script>-->
</body>
</html>